﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Intranet.Models.activity>" %>
<script src="<%: Url.Content("~/Scripts/jquery-1.5.1.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
    type="text/javascript"></script>
<% using (Ajax.BeginForm("NewActivity", "Home", new AjaxOptions { InsertionMode=InsertionMode.Replace, UpdateTargetId="myActivities", HttpMethod="post" }))
   { %>
<%: Html.ValidationSummary(true)%>
<table>
    <tr>
        <td>
            <%: Html.HiddenFor(model => model.assignedTo)%>
            <%: Html.EditorFor(model => model.details)%>
            <%: Html.ValidationMessageFor(model => model.details)%>
        </td>
        <td class="controls">
            <input type="submit" value="Create" />
            
        </td>
    </tr>
</table>
<% } %>
